﻿using CoachingOrganizer.Logic.Models.Tools.MoneyCalculation;
using CoachingOrganizer.WinPhone.UITools;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Windows.UI;

namespace CoachingOrganizer.WinPhone.ViewModels.Tools.MoneyCalculation
{
    public class PeriodGroupReportViewModel : ViewModelBase
    {
        private readonly PeriodGroupReportModelBase _model;

        public string Name
        {
            get { return _model.Name; }
        }

        public int Sign
        {
            get { return _model.Sign; }
        }

        public decimal Amount
        {
            get { return _model.GetAmount(); }
        }

        public Color MarkColor
        {
            get { return _model.Sign > 0 ? Colors.Green : Colors.Red; }
        }

        public PeriodGroupReportViewModel(PeriodGroupReportModelBase model)
        {
            _model = model;
        }
    }
}
